package com.heima.home.service;

import com.heima.home.dto.ReviewsDTO;
import com.heima.home.entity.Reviews;

import java.util.List;

public interface ReviewsService {

    int addReviews(ReviewsDTO reviewsDTO);

    List<ReviewsDTO> showAllReviewsByUserId(Integer userId);

    boolean deleteReviews(Integer id, Integer currentUserId);

    boolean updateReviews(ReviewsDTO reviewsDTO, Integer currentUserId);

    List<ReviewsDTO> findByPropertyId(Integer propertyId);

}
